package com.simple.behavior.classandclass.command;

/**
 * @author simple
 * @version 1.0
 * @date 2019-01-04 18:06
 * @since 1.0
 */
public class MyCommand implements Command {
    private Receiver receiver;

    public MyCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void exec() {
        receiver.action();
    }
}
